<!DOCTYPE html>
<html lang="zh-cn">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no"/>
    <meta name="renderer" content="webkit">
    <title></title>
    <link rel="stylesheet" href="__CSS__/pintuer.css">
    <link rel="stylesheet" href="__CSS__/admin.css">
    <script src="__JS__/jquery.js"></script>
    <script src="__JS__/pintuer.js"></script>
</head>
<body>
<div class="panel admin-panel">
    <div class="panel-head"><strong><span class="icon-key"></span> {$title}</strong></div>
    <div class="body-content">
        <form method="post" class="form-x" action="{:U()}">
            <div class="form-group">
                <div class="label">
                    <label for="name">管理员帐号：</label>
                </div>
                <div class="field">
                    <label id="name" style="line-height:33px;">
                        {$name}　　
                        <a class="button border-main" href="{:U('Admin/changePwd',['id'=>$id])}"><span class="icon-edit"></span> 修改密码</a>
                        <a class="button border-red" href="javascript:void(0)" onclick="return del({$id})"><span class="icon-trash-o"></span> 删除</a>
                        <script type="text/javascript">
                            function del(id) {
                                if (confirm("您确定要删除吗?")) {
                                    window.location.href = "/Admin/delOne/id/" + id + ".html";
                                }
                            }
                        </script>
                    </label>
                </div>
            </div>
            <div class="form-group">
                <div class="label">
                    <label for="sort">排序：</label>
                </div>
                <div class="field">
                    <select name="sort" id="sort" class="input" style="width:200px; line-height:17px;">
                        <option value="1">最高</option>
                        <option value="2">高</option>
                        <option value="3">中等</option>
                        <option value="4">低</option>
                        <option value="5">最低</option>
                    </select>
                    <script type="text/javascript">
                        $("#sort  option[value='{$sort}']").prop("selected", true);
                    </script>
                </div>
            </div>
            <div class="form-group">
                <div class="label">
                    <label for="sort">角色：</label>
                </div>
                <div class="field">
                    <js href="__ZTREE__/jquery.ztree.core.min.js"/>
                    <js href="__ZTREE__/jquery.ztree.excheck.min.js"/>
                    <script type="text/javascript">

                    </script>
                </div>
            </div>
            <div class="form-group">
                <div class="label">
                    <label for="sort">用户组：</label>
                </div>
                <div class="field">
                    <select name="group_id" id="group_id" class="input" style="width:200px; line-height:17px;">
                        <option value="0">0</option>
                        <option value="1">1</option>
                        <option value="2">2</option>
                        <option value="3">3</option>
                        <option value="4">4</option>
                        <option value="5">5</option>
                    </select>
                    <script type="text/javascript">
                        $("#group_id  option[value='{$group_id}']").prop("selected", true);
                    </script>
                </div>
            </div>

            <div class="form-group">
                <div class="label">
                    <label for="sort">账号状态：</label>
                </div>
                <div class="field">
                    <select name="is_show" id="is_show" class="input" style="width:200px; line-height:17px;">
                        <option value="0">禁用</option>
                        <option value="1">正常</option>
                    </select>
                    <script type="text/javascript">
                        $("#is_show  option[value='{$is_show}']").prop("selected", true);
                    </script>
                </div>
            </div>

            <div class="form-group ">
                <div class="label">
                    <label for="intro">管理员描述(选填)：</label>
                </div>
                <div class="field">
                    <textarea name="intro" id="intro" style="resize:none;width: 45%;height: 200px;">{$intro}</textarea>
                </div>
            </div>
            <input type="hidden" name="id" value="{$id}">


            <div class="form-group">
                <div class="form-group">
                    <div class="label">
                        <label></label>
                    </div>
                    <div class="field">
                        <button class="button bg-main icon-check-square-o" type="submit"> 提交</button>
                    </div>
                </div>
            </div>
        </form>
    </div>
</div>
</body>
</html>